<?php

declare(strict_types=1);

namespace App\CustHub\Model;

use Mine\MineModel;

/**
 * @property int $id 
 * @property string $name 名称
 * @property string $group 分组
 * @property string $key 参数名称
 * @property string $value 参数值
 * @property string $tips 提示信息
 * @property string $input_type 数据输入类型
 * @property array $config_select_data 配置选项数据
 * @property \Carbon\Carbon $created_at 
 * @property \Carbon\Carbon $updated_at 
 */
class ChConfig extends MineModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'ch_config';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'name', 'group', 'key', 'value', 'tips', 'input_type', 'config_select_data', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'config_select_data' => 'array', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
